package com.vanysoft.business.sys.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.vanysoft.framework.config.database.BaseEntity;

import static com.vanysoft.framework.aop.RequestMappingAnnotationAspect.BASE_API_OPEN;

/**
 * 资源表
 *
 * @author qi_ma
 */


@TableName("SYS_API")
public class Api extends BaseEntity<Api> {
    private static final long serialVersionUID = 8884601996528623736L;
    private String uri;
    private String name;
    private String authCode = BASE_API_OPEN;
    private String isEnable = "1";
    @TableField(value = "IS_LOG")
    private Boolean log = false;

    public Api() {
    }

    public Api(String uri, String name, String authCode, String isEnable, Boolean log) {
        this.uri = uri;
        this.name = name;
        this.authCode = authCode;
        this.isEnable = isEnable;
        this.log = log;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    public Boolean getLog() {
        return log;
    }

    public void setLog(Boolean log) {
        this.log = log;
    }
}
